package com.ptswitch.material.service;

import com.ptswitch.material.model.common.LoginInfo;

public interface LoginInfoService {
    LoginInfo findById(long id);

    LoginInfo findByUsername(String username);

    LoginInfo findByUsernameAndLoginToken(String username, String loginToken);

    void deleteByUsername(String username);

    void save(LoginInfo loginInfo);

    void delete(LoginInfo loginInfo);
}
